export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  labelWidth: 120,
  "searchMenuSpan": 6,
  "column": [
	  {
      "type": "input",
      "label": "编号",
      "prop": "contractId",
      hide: true,
      addDisplay: false,
      editDisplay: false,
      "span": 12
    },	  {
      "type": "select",
      "label": "物业",
      "prop": "propertyId",
      dicUrl: '/act/property/page?size=-1',
      rules: [{
        required: true,
        message: '请选择物业'
      }],
      props: {
        label: 'name',
        value: 'propertyId',
        res: "data.records"
      },
      "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "历史合同编号",
    //   "prop": "historyId",
    //   "span": 12
    },	  {
      "type": "input",
      "label": "合同名称",
      maxlength: 64,
      search: true,
      rules: [{
        required: true,
        message: '请输入合同名称',
        trigger: 'blur'
      }],
      "prop": "name",
      "span": 12
    },	  {
      "type": "input",
      "label": "合同编号",
      maxlength: 32,
      "prop": "no",
      rules: [{
        required: true,
        message: '请输入合同编号',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "select",
      "label": "合同类型",
      width: 120,
      dicUrl: '/admin/dict/type/property_contract_type',
      rules: [{
        required: true,
        message: '请选择合同类型',
      }],
      "prop": "type",
      "span": 12
    },	  {
      "type": "select",
      "label": "甲方",
      "prop": "partyAId",
      width: 120,
      dicUrl: '/act/propertycontractobject/page?size=-1&type=1&status=1',
      rules: [{
        required: true,
        message: '请选择甲方'
      }],
      props: {
        label: 'name',
        value: 'objectId',
        res: "data.records"
      },
      "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "甲方名称",
    //   "prop": "partyAName",
    //   "span": 12
    },	  {
      "type": "input",
      "label": "甲方电话",
      width: 120,
      "prop": "partyAPhone",
      rules: [{
        required: true,
        message: '请输入甲方电话',
        trigger: 'blur'
      }],
      maxlength: 20,
      "span": 12
    },	  {
      "type": "input",
      "label": "甲方联系人",
      width: 120,
      "prop": "partyAContact",
      rules: [{
        required: true,
        message: '请输入甲方联系人',
        trigger: 'blur'
      }],
      maxlength: 32,
      "span": 12
    },	  {
      "type": "select",
      "label": "乙方",
      width: 120,
      "prop": "partyBId",
      dicUrl: '/act/propertycontractobject/page?size=-1&type=2&status=1',
      rules: [{
        required: true,
        message: '请选择乙方'
      }],
      props: {
        label: 'name',
        value: 'objectId',
        res: "data.records"
      },
      "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "乙方名称",
    //   "prop": "partyBName",
    //   "span": 12
    },	  {
      "type": "input",
      "label": "乙方电话",
      width: 120,
      maxlength: 20,
      rules: [{
        required: true,
        message: '请输入乙方电话',
        trigger: 'blur'
      }],
      "prop": "partyBPhone",
      "span": 12
    },	  {
      "type": "input",
      "label": "乙方联系人",
      width: 120,
      "prop": "partyBContact",
      rules: [{
        required: true,
        message: '请输入乙方联系人',
        trigger: 'blur'
      }],
      maxlength: 32,
      "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "经办人ID",
    //   "prop": "handleId",
    //   "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "经办人名称",
    //   "prop": "handleName",
    //   "span": 12
    },	  {
      "type": "input",
      "label": "经办人名称",
      width: 120,
      "prop": "handleRealname",
      rules: [{
        required: true,
        message: '请输入经办人名称',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "input",
      "label": "联系电话",
      width: 120,
      "prop": "handlePhone",
      rules: [{
        required: true,
        message: '请输入联系电话',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "number",
      "label": "合同金额",
      "prop": "amount",
      maxRows: 100000000,
      rules: [{
        required: true,
        message: '请输入合同金额',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "date",
      "label": "起始日期",
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      "prop": "startDate",
      rules: [{
        required: true,
        message: '请选择起始日期',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "date",
      "label": "截止日期",
      format: 'yyyy-MM-dd',
      width: 120,
      valueFormat: 'yyyy-MM-dd',
      "prop": "endDate",
      rules: [{
        required: true,
        message: '请选择截止日期',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "date",
      "label": "签订日期",
      "prop": "signedDate",
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      rules: [{
        required: true,
        message: '请选择签订日期',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "select",
      "label": "状态",
      dicUrl: '/admin/dict/type/use_status',
      value: '1',
      "prop": "status",
      "span": 12
    },	  {
      "type": "textarea",
      "label": "备注",
      hide: true,
      "prop": "remark",
      maxlength: 256,
      "span": 24
    },	  {
      "type": "upload",
      "label": "附件",
      "prop": "attachment",
      accept: [],
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      action: "/act/file/upload",
      listType: 'file',
      hide: true,
      "span": 24
    }  ]
}
